﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Common
{
    public class Stat : IStat
    {
        private string m_Name = string.Empty;
        private double m_Current = 0.0;
        private double m_Modifier = 0.0;
        private IList<IStat> m_DepStats = new List<IStat>();

        public string Name
        {
            get
            {
                return m_Name;
            }
            protected set
            {
                m_Name = value;
            }
        }

        public double Current
        {
            get
            {
                return m_Current;
            }
            protected set
            {
                m_Current = value;
            }
        }

        public double Modifier
        {
            get
            {
                return m_Modifier;
            }
            protected set
            {
                m_Modifier = value;
            }
        }

        public IList<IStat> DependentStats
        {
            get
            {
                return m_DepStats.ToList<IStat>();
            }
            protected set
            {
                m_DepStats = value.ToList<IStat>();
            }
        }
    }
}
